<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnIsAcceptEveryDayReportInProjectTable extends AbstractMigration
{

    public function up()
    {
        $this->table('project')
            ->addColumn('is_accept_every_day_report', 'enum', ['values' => 'yes,no', 'default' => 'no', 'comment' => '是否接受每日报表消息推送'])
            ->save();
    }

    public function down()
    {
        $this->table('project')
            ->removeColumn('is_accept_every_day_report')
            ->save();
    }
}
